﻿using System;
using System.Collections.Generic;
using System.Text;

namespace MouldingAndMillwork.SSIS
{
	#region CLASS: WarningOrError
	public class WarningOrError
	{
		#region Private Variables
		private bool _isError;
		private string _message;
		#endregion

		#region Constructor
		public WarningOrError(bool isError, string message)
		{
			this._isError = isError;
			this._message = message;
		}
		#endregion

		#region Public Properties
		public bool IsError
		{
			get { return this._isError; }
		}

		public System.Drawing.Icon Icon
		{
			get
			{
				if (this._isError)
				{
					return System.Drawing.SystemIcons.Exclamation;
				}
				else
				{
					return System.Drawing.SystemIcons.Information;
				}
			}
		}

		public string Message
		{
			get { return this._message; }
		}

		#endregion
	}
	#endregion

}
